<%
	coordinate_types_question_map=@maps[0]
	coordinate_types_role_map=@maps[1]
	strategy_name=@report_response.owner_role.strategy.name
%>

<%= render :partial => 'back_button' %>

<%= render :partial => 'print_report' %>

<%= render :partial => 'browse_reports', :locals => {:report_response => @report_response} %>

<div class="reference"><span><%= _('References:') %></span><%= _('Yes:') %> <img src="/images/circ_y.gif" />&nbsp;&nbsp;<%= _('No:') %> <img src="/images/circ_n.gif" /></div>

<div id="maintable">
	
    <table class="sctable_finished_1" cellpadding="0" cellspacing="0">
    	<col id="col1"><col id="col2">
        <tr>
            <th class="col1"><%= _('Indicator by Strategy') %></th>
			<th class="col2"><%= _('Indicator') %>	</th>     
        </tr>
		<tr class = "trstrategy">
			<td class ="col1"> <%= strategy_name %></td>
			<td class="col2"></td>
		</tr>
		
		<%= render :partial => 'inside_table_sc', :locals => {:question_map => (@maps[0])[Strategy.name],:set_roles => (@maps[1])[Strategy.name],:name => Strategy.name} %>
    </table>
	
	<br />
	<br />

    <table class="sctable_finished_2" cellpadding="0" cellspacing="0">
		<tr>
            <th class="col1"><%= _('COUNTRY COORDINATORS') %></th>
			<% (@maps[1])[Country.name].each do |@role| %>
				<th class="col2"> <%=@role.country.name %> </th>
			<% end %>
		</tr>
        <tr class = "trstrategy">
			<td class ="col1"> <%= strategy_name  %></td>
			<% (@maps[1])[Country.name].length.times do |counter| %>
				<td class="col2"></td>
			<% end %>
		</tr>	
		<%= render :partial => 'inside_table_sc', :locals => {:question_map => (@maps[0])[Country.name],:set_roles => (@maps[1])[Country.name],:name => Country.name} %>
	</table>

	<br />
	<br />

    <table class="sctable_finished_2" cellpadding="0" cellspacing="0">
		<tr>
            <th class="col1"><%= _('CROSS-BORDERS') %></th>
			<% (@maps[1])[Site.name].each do |@role| %>
				<th class="col2"> <%=@role.site.cross_borders.map(&:code).join('<br/>') %> </th>
			<% end %>
		</tr>
		<%= render :partial => 'inside_table_sc', :locals => {:question_map => (@maps[0])[Site.name],:set_roles => (@maps[1])[Site.name],:name => Site.name} %>	
    </table>
</div><!--/maintable-->

<br/>

<div id = "HistoryLog">
    <%= render :partial => 'history_log', :object => @report_response %>
</div>

<% content_for :footer do%>
	<%= link_to image_tag("b_back_report_management.gif"), :action => 'completed'%>
<% end %>
